<div id="formsuccess" style="display:none">{if isset($errors.status) && $errors.status == "success"}{$page->getEditUrl($page->getLang())}{/if}</div>
	{if count($folders) >= 1}
	<form name="form" method="post" action="?module=backoffice&action=AjaxContext&href={$href}" class="nyroModal">
            {t assignTo=title}Move page{/t}
	{include file="$MODULES_DIR/backoffice/templates/block/modal/ModalTitle.html" title=$title}
        <div id="modalContent">
		<table class="listTable">
			<tr><td>{t}Move to{/t} :
				<select name="form[folder]">				
                    {foreach from=$folders item=doc}
                        <option value="{$doc[0]}" {if $doc[0] == $currentFolderId}disabled="disabled"{/if}>{$doc[1]}</option>
                    {/foreach}
				</select>
			</td></tr>
		</table>
        </div>
        {t assignTo=labelFooter}Move{/t}
        {include file="$MODULES_DIR/backoffice/templates/block/modal/ModalFooter.html" label=$labelFooter}
	</form>
	{else}
        {t assignTo=title}Move page{/t}
	{include file="$MODULES_DIR/backoffice/templates/block/modal/ModalTitle.html" title=$title}
     <div id="modalContent">
		 <table class="modalTable">
			 <tr><td>{icon name="warning.png"} {t}There is no menu to move this page in.{/t}</td></tr>
		 </table>
    </div>
        {t assignTo=labelFooter}Move{/t}
	{include file="$MODULES_DIR/backoffice/templates/block/modal/ModalFooter.html" label=$labelFooter noButton=true}
	{/if}
